home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 2,801 to 2,900
/
aol-file-protocol-4400-2801-to-2900.zip
/
AOLDLs
/
TAWUG
/
TAWUG Disk No. 56 (SHK)
/
TAWUG56.shk
/
DISK.PROTECTION
(
.txt
)
< prev
next >
Wrap
AppleWorks Document
|
1987-07-01
|
3KB
|
63 lines
O=====|====|====|====|====|====|====|====|====|====|====|====|====|====|====|===
COPY PROTECT 'YOUR' DISKS
MARTIN PIERCEY
Reprinted from: THE MAPLE ORCHARD'
PO BOX 696, STATION B.
WILLOWDALE, ONTARIO M2K 2P9
? Residing within DOS is the 'RWTS' (Read or Write a Track @
>and Sector). When you initialize a disk, DOS calls the 'RWTS' =
;which writes the address and data marks for each track and A
?sector. If you change the address or data marks in the 'RWTS' C
Acore then any disk you INIT from this core will have the changed D
Baddress and data marks and will be uncopyable (at least by normal
methods).
? The locations for DOS 3.3 are 47413 and 47262. These are A
?only two of a number of locations. The normal values at these C
Aaddresses are 222. When you change this byte, be sure to change A
?both locations to the same value. Use a value between 160 and
Follow this routine:
1. BOOT NORMAL DOS
2. LOAD YOUR 'HELLO' PROGRAM(
3. INSERT A BLANK DISK IN YOUR DRIVE
4. POKE 47414,(NEW NUMBER)
5. POKE 47262,(NEW NUMBER)(
6. INIT (NAME OF YOUR HELLO PROGRAM)
; You now have a protected disk! The normal APPLE copy D
Bprograms will not work on this diskette. To use it you must boot -
this disk. This will load the changed DOS.
@ In order to 'LOAD' programs onto this disk you must change 0
the two new locations that you POKE'd earlier.
Follow these steps:
1. BOOT NORMAL DOS
2. LOAD YOUR PROGRAM
3. POKE 47413,(NEW NUMBER)
4. POKE 47262,(NEW NUMBER)(
5. INSERT THE PROTECTED DISK IN DRIVE
6. SAVE (PROGRAM NAME)
? Now, transfer all your programs to the new copy-protected
disk.
A After you have transfered all you programs to the protected C
Adisk, you need to consider one final point. In order to get the D
Bfull benefit of this method of copy protection, a special 'HELLO' C
Aprogram should be used. This program should set the RUN flag as >
<well as lock out the RESET switch and 'CTRL-C', and then it
should RUN your program.
An example (Insert these lines ahead of your 'HELLO' program.):
LINE 0 ONERR GOTO 1
LINE 1 POKE 214,128: POKE 1010,102&
POKE 1011,213: POKE 1012,112"
:PRINT CHR$(4)"RUN (YOUR
PROGRAM NAME)
A LINE 0 and 1 sets RUN command, locks out 'CTRL-C' and RESET $
switch and auto runs your program.
B The final step for true copy protection... Now you must add B
@a line in from of your program to change the two locations back
to the original values.
LINE 0 POKE 47413,222 : POKE
47262,222
B LINE 0 changes DOS back to normal. If by chance someone were C
Aable to stop your program, they would not be able to access your
disk!
@ I trust these techniques are of some interest. Be certain B
to practice them using disks which do not contain valuable data!